import axios from '@/libs/api.request'

export default class workflowApi {
  // 获取列表
  static GetList = (params) => {
    return axios.request({
      url: '/WorkFlow/GetList',
      data: params,
      method: 'post'
    })
  }

  // 禁用启用
  static EnableWorkFlow = (params) => {
    return axios.request({
      url: '/WorkFlow/EnableWorkFlow',
      data: params,
      method: 'post'
    })
  }

  // 获取适用表单
  static GetBusinesses = (params) => {
    return axios.request({
      url: '/WorkFlow/GetBusinesses',
      params: params,
      method: 'get'
    })
  }

  // 提交工作流信息
  static PostWorkFlow = (params) => {
    return axios.request({
      url: '/WorkFlow/PostWorkFlow',
      data: params,
      method: 'post'
    })
  }

  // 获取工作流信息
  static GetWorkFlow = (params) => {
    return axios.request({
      url: '/WorkFlow/GetWorkFlow',
      params: params,
      method: 'post'
    })
  }
}